const path = require('path'); //引入path模块
function resolve(dir) {
  return path.join(__dirname, dir) //path.join(__dirname)设置绝对路径
}
module.exports = {
  devServer: { // 环境配置
    host: '0.0.0.0',
    public: '172.16.99.224:8080',
    port: 8080,
    https: false,
    hotOnly: false,
    disableHostCheck: true,
    open: false, // 配置自动启动浏览器

  },
  chainWebpack: (config)=>{
    //修改文件引入自定义路径
    config.resolve.alias
        .set('@', resolve('./src'))
        .set('assets', resolve('./src/assets'))
}

}